Beginner’s Guide to Install CpanelWHM on CloudLinux
You might need to manage your web hosting environment as a Linux user. If you are not that technical, cPanel/WHM is what you need to manage your web hosting server. So, join us with the Beginner’s Guide to Install cPanel/WHM on CloudLinux.
cPanel is a Linux-based control panel. If you have basic knowledge of hosting, and you decide to buy a cheap Linux VPS, you need to use some user-friendly tools. cPanel enables you to perform actions from a dashboard instead of running complex commands.
Table of Contents
- What is cPanel/WHM and Why to Use it?
- Prerequisites to Install cPanel/WHM on CloudLinux
- cPanel/WHM Installation on CloudLinux (Step by step)
What is cPanel/WHM and Why to Use it?
One of the most widely used control panels among site designers and hosting companies is cPanel. It is frequently used in conjunction with WHM (Web Host Manager). Both tools cooperate closely while each performs a distinct function. The server’s administrative functions are controlled by Web Host Manager. WHM manages many websites and various accounts in addition to server specifications. cPanel hosting is the process of a hosting company managing a server with WHM and setting up cPanel accounts for their clients.
Users choose cPanel for the following features:
- User-friendly interface
- Highly compatible
- Wide range of features
- Automatic software installation
- Reliable support
As an online control panel, cPanel aids customers in controlling Linux hosting services. A user may manage hosting administration tasks including setting up a website, creating and managing emails, changing passwords, setting up mail forwards, managing add-on domains and subdomains, uploading and managing files, etc., with the aid of cPanel.
Stay with us to get ready to install cPanel/WHM on CloudLinux.
Prerequisites to Install cPanel/WHM on CloudLinux
Consider that you can install cPanel & WHM on AlmaLinux version 6, 7, 8, or 9, but you cannot install cPanel & WHM version 112 and later on CloudLinux™ version 6 or 7 servers. So, make sure your CloudLinux system satisfies all the minimal criteria for new installations before you install cPanel & WHM:
- Log in to the server as the root user.
- 20 GB RAM.
- A Linux VPS with CloudLinux 8/9 OS.
- Perl & Curl Installed.
- At least one IPv4 address.
cPanel/WHM Installation on CloudLinux (Step by step)
Once you have provided all the required prerequisites, you are ready to follow the simple steps below to install cPanel/WHM on CloudLinux.
Step 1: Update Server
Before installing cPanel, update the server with the following command. Depending on the speed of your network and the worth of your resources, the update procedure will take a few minutes.
yum update -y
When prompted to continue with the update, type y
and press Enter.
Step 2: Disable Firewall
During installation, the installer will make an effort to open the required ports. Before starting the installation of cPanel and WHM, we advise you to turn off any OS firewalls. We advise that after the installation is complete, you configure a firewall using a third-party client like APF or CSF.
Run the commands below to deactivate the firewall on CloudLinux 6:
/etc/init.d/iptables save
/etc/init.d/iptables stop
/sbin/chkconfig --del iptables
Also, to deactivate firewalls on CloudLinux 7, 8, and 9, run the following commands:
iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.service
Step 3: Disable SELinux
Before starting cPanel and WHM installation, you must disable SELinux in order for your system to be compatible with the installation of cPanel. To do this, run:
setenforce 0
Update the following entry in /etc/sysconfig/selinux
to permanently disable SELinux:
SELINUX=disabled
Step 4: Setup Hostname
cPanel requests a hostname that should be in Fully Qualified Domain Name format (FQDN). Make sure to provide your system with a suitable, fully qualified hostname. To set a proper hostname type:
hostname myeserver.example.com
Note: Do not forget to set your own hostname instead of
myeserver.example.com
.
Edit the hostname item in /etc/sysconfig/network
as shown below to permanently set the hostname.
HOSTNAME=myserver.example.com
Step 5: Install cPanel/WHM
Since your cPanel/WHM installation preparation is now complete, you can run each of the aforementioned commands one at a time to install WHM/cPanel on your system.
cd /home
curl -o latest -L http://httpupdate.cpanel.net/latest
sh latest
It may take some time to complete.
Now, you've successfully installed cPanel/WHM on CloudLinux!